package com.wandian.cqcsk.adapter.mine;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.cqcsk.R;
import com.wandian.cqcsk.bean.TXHistoryBean;

/**
 * @author Administrator
 * @date 2019/12/16-13:32
 * @description MyCoinHistoryRecycleAdapter
 **/
public class MyCoinHistoryRecycleAdapter extends BaseQuickAdapter<TXHistoryBean, BaseViewHolder> {

    public MyCoinHistoryRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, TXHistoryBean item) {
        TextView tv_type = helper.getView(R.id.tv_type);
        TextView tv_coin = helper.getView(R.id.tv_coin);
        TextView tv_money = helper.getView(R.id.tv_money);
        TextView tv_time = helper.getView(R.id.tv_time);
        TextView tv_state = helper.getView(R.id.tv_state);
        tv_type.setText("提现渠道："+item.getChannelName());
        tv_coin.setText("扣除金币："+item.getGold()+"金币");
        tv_money.setText("到账金额："+item.getAmount()+"元");
        tv_time.setText("提现时间："+item.getCreateTime()+"");
        tv_state.setText(item.getStatusDesc()+"");
    }
}
